// Difficulty: "Moderate"
// This is the JavaScript tokenizer that is actually used to highlight
// all code in the syntax definition editor and the documentation!
//
// This definition takes special care to highlight regular
// expressions correctly, which is convenient when writing
// syntax highlighter specifications.
import { conf as jsConf, language as jsLanguage } from './javascript.contribution.js';
import { language as sqlLanguage } from './sql.contribution.js';

export const conf = jsConf;
export const keywords = () => {
    let keywords = jsLanguage.keywords
    keywords = keywords.concat(sqlLanguage.keywords)
    return keywords
}
export const operators = () => {
    let keywords = jsLanguage.operators
    keywords = keywords.concat(sqlLanguage.operators)
    return keywords
}

export const language = {
    ...sqlLanguage,
    ...jsLanguage,
    defaultToken: 'invalid',
    // ignoreCase: true,
    keywords: keywords(),
    operators: operators(),
    builtinFunctions: sqlLanguage.builtinFunctions
};